package com.atguigu.jxc.controller;

import com.atguigu.jxc.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * User: fqy
 * Date: 2021/10/16
 * Time: 11:33
 * Describe:
 */
@RestController
@RequestMapping("unit")
public class UnitController {

    @Autowired
    private GoodsService goodsService;

    @PostMapping("list")
    private Map<String,Object> getGoodsUnit(){
        return goodsService.getGoodsUnit();
    }
}
